Go to: Related nodes. Attributes.

This is the unit conversion node. It gets inserted between two nodes when a connection is made between numeric attributes that are of different unit types. The purpose of the unit conversion node is to ensure that "1" in the unit of the attribute at the source end of the connection is equivalent to "1" in the unit of the attribute at the destination end of the connection, in the current user units at the time of connection.

For example, if a connection is made between transform1.translateX and transform2.rotateX, and the current user units are centimeters for linear, and degrees for angle, then when transform1.translateX is 1 cm, transform2.rotateX is 1 degree. If the linear units are then changed to meters, then when transform1.translateX is set to 1 (i.e. 100 cm), transform2.rotateX will have the value 100 degrees.
Node name Parents Classification MFn type Compatible function sets
unitConversion node utility/scalar kUnitConversion kBase
kNamedObject
kDependencyNode
kUnitConversion

Related nodes

holdMatrix, passMatrix, distanceBetween, timeToUnitConversion, unitToTimeConversion

Attributes (3)

conversionFactor, input, output

Long name (short name) Type Default Flags
input (i) Generic n/a outputinputconnectablestorable
Number or list of numbers to be converted
output (o) Generic n/a outputconnectable
Number or list of numbers after unit conversion
conversionFactor (cf) double 1.0 outputinputstorable
The multiplier that will convert the input attribute(s) to the output attribute(s) preserving the 1=1 relationship between the two unit types from the time of connection.